import * as dayjs from 'dayjs'
export function formatDate (time, format) {
  const date = new Date(time)
  return dayjs(date).format(format)
}
